-- GENERATED SPELL FOR [Soriid the Devourer] --


function spell0_8204(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(12097,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8204', 20263, 1)
end

function spell1_8204(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8204', 15000, 1)
end

function Sorts_8204(pUnit, Event)
local choix_sorts_8204 = math.random(0, 1)
if choix_sorts_8204 == 0 then
pUnit:RegisterEvent('spell0_8204', 1, 1)
end
if choix_sorts_8204 == 1 then
pUnit:RegisterEvent('spell1_8204', 1, 1)
end
end

function mob8204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8204', math.random(1500, 3000), 1)
end

function mob8204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8204, 1, 'mob8204_Action')
RegisterUnitEvent(8204, 2, 'mob8204_Leave')
RegisterUnitEvent(8204, 3, 'mob8204_Kill')
RegisterUnitEvent(8204, 4, 'mob8204_Die')
